package it.unibo.refolding.pico;

import it.unibo.refolding.common.LoggingInvocationHandler;

import java.lang.reflect.Proxy;
import java.util.logging.Level;


public class RobotLoggingInfoNanoDriver extends NanoDriverDecorator {

	public RobotLoggingInfoNanoDriver(NanoDriverConfig config) {
		super((NanoDriver) Proxy.newProxyInstance(
			RobotLoggingInfoNanoDriver.class.getClassLoader(), new Class<?>[] {NanoDriver.class},
			new LoggingInvocationHandler(
				Level.INFO, new RobotNanoDriver(config))));
	}
}
